// 流程接口地址
import request from "@/utils/request";

// todo接口查询 查询节点信息 /flowable/definition/user/todo/{processId}
export function flowableTodo(processId,params) {
  return request({
    url: `/flowable/definition/user/todo/${processId}`,
    method: "get",
    params
  });
}
// 流程图
export function flowablePhoto(params) {
  return request({
    url: `/flowable/task/flowXmlAndNode?flowKey=${params.flowKey}&procInsId=${params.procInsId}`,
    method: "get"
  });
}
// 数据
export function flowableRecord(params) {
  return request({
    url: `/flowable/task/flowRecord?flowKey=${params.flowKey}&procInsId=${params.procInsId}`,
    method: "get"
  });
}
// 用人申请审批
export function approveApi(data,url) {
  return request({
    url: `${url}`,
    method: "post",
    data,
  })
}